﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace DockSample
{
    public enum Diagram
    {
        NullObject, HighOrderObject, PrimitiveObject, SimpleRelationship, ComplexRelationship,
        HighState, PrimitiveState, StateTransitionFlow,ExternalInterfaceIn,ExternalInterfaceOut,
        Process, InformationSource, InformationFlow,DataStore,ComplexLine,SelfRoundLine
    }
    public class SystemVar
    {
        public static string SQLITE_DATABASE_TEMPLATE_FILE_PATH = Application.StartupPath.ToString() + "\\sqlite\\NewTemplate\\hoomt.sqlite";

        public static string SQLITE_DATABASE_FILE_PATH = Application.StartupPath.ToString()+"\\sqlite\\hoomt.sqlite";

        public static string JAVA_ENTITY_PACKAGE_PATH="E:\\Workspace8\\zfgenerator\\src\\com\\zf\\website\\entity";

        public static  string newEntity_url = "http://localhost:8080/zfgenerator/mgr/entityBean/newEntity";

        public static Diagram currentDiagramFlag = Diagram.NullObject;

        public static MainForm mainForm;

        public List<DummyModelForm> modelFormList = new List<DummyModelForm>();

        //控制Mainform上图标工具条
        public static void setSelectableToolBox(DummyModelForm modelForm)
        {
            if (modelForm is ObjectModelForm)
            {
                mainForm.Toolbox.setObjectDiagramToolStrip();
            }
            else if (modelForm is InformationFlowModelForm)
            {
                mainForm.Toolbox.setInformationDiagramToolStrip();
            }
            else if (modelForm is StateTransitionModelForm)
            {
                mainForm.Toolbox.setStateDiagramToolStrip();
            }
            
        }
    }

}
